<?php
/*Mostafa Shalkami (C) 2010 CC Share-Alike 3.0 Some Rights Reserved
*shalkamm@gmail.com
*sfasdf
*This work is licensed under the Creative Commons Attribution-Share Alike 3.0 United States License.
*To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/us/ or send a 
*letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
*
*/
class nestedsearch_adm extends sobi_nestedsearch {
    
function saveConfig() {

$config =& adminConfig::getInstance();
$config->setValueInDB(sobi2Config::request( $_POST, 'dfields_secondary',$this->secondary ),"s_fields","sobi_nestedsearch");
}
    	
   function config() {
	$dd_tabs = new sobiTabs(true);
				
        $dd_tabs->startPane("sobidf_adm");

        $dd_tabs->startTab("Settings","params");
        $this->settings();
        $dd_tabs->endTab();

				$dd_tabs->endPane();
	    }
    function settings() {
?>
<p>
<?php echo "Fields dependences"; ?>
<?php echo sobiHTML::toolTip("names of the fields which will be hidden and shown according to the main field separated by comma ending with ';' and preceeded by the main field ending with ':' ex. field_main:field_1,field_2,field_......",0 );?>
 <textarea class="text_area"  name="dfields_secondary" cols="100" rows="8"/><?php echo $this->config->getValueFromDB("sobi_dfields","s_fields"); ?></textarea>
<?php
	}
	
	function editFormStart( $sobiId, &$fields )
	{
		return null;
	}
	function editForm( $sobiId )
	{
		return null;
	}

}
	?>

